package com.sicau.socialpracticesystem.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 积分使用记录表
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PointsExchange对象", description="积分使用记录表")
public class PointsExchange implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "奖品对应id")
    private Integer prizeId;

    @ApiModelProperty(value = "奖品名称")
    private String prizeName;

    @ApiModelProperty(value = "积分使用时间")
    private LocalDateTime usedTime;

    @ApiModelProperty(value = "兑换奖品所需积分")
    private Double points;

    @ApiModelProperty(value = "用户id")
    private Integer userId;
//    有就直接申请成功，没有就直接失败，不需要状态记录了
//    @ApiModelProperty(value = "申请状态(0:  已申请, 1: 已兑换, 2: 兑换拒绝)")
//    private Integer state;


}
